package com.ky.pro.java.rpc.demo.provider.config;

import com.ky.pro.java.rpc.demo.api.OrderService;
import com.ky.pro.java.rpc.demo.api.UserService;
import com.ky.pro.java.rpc.demo.provider.service.impl.OrderServiceImpl;
import com.ky.pro.java.rpc.demo.provider.service.impl.UserServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName ServiceConfiguration
 * @Description 配置业务服务
 * @Date 2022/1/1 14:35
 * @Author kevin
 **/
@Configuration
public class ServiceConfiguration {

    @Bean
    public UserService userService() {
        return new UserServiceImpl();
    }

    @Bean
    public OrderService orderService() {
        return new OrderServiceImpl();
    }

}
